module.exports = function(app) {
    app.use('/api', require('./api'));

    app.use("/", function(req, res, next) {
        let body = '<html>' +
            '<head>' +
            '<meta http-equiv="Content-Type" content="text/html; ' +
            'charset=UTF-8" />' +
            '</head>' +
            '<body>' +
            '<div class="telCheck">' +
            '<span>输入收货手机号<span class="must">*</span></span>' +
            '<form action="" class="check-form">' +
            '<div><input type="text" class="input tel" maxlength="11" placeholder="输入手机号" onKeyUp="this.value=this.value.replace(/\D/g,\'\')" onafterpaste="this.value=this.value.replace(/\D/g,\'\')"></div>' +
            '<div><input type="text" class="input code" placeholder="输入验证码"><a href=" " class="code-btn js-code">获取验证码</a></div>' +
            '<span class="tip">重要：活动票品为现场取票，请于演出前30分钟持购买成功短信到现场取票</span>' +
            '</form>' +
            '</div>' +
            '</body>' +
            '</html>';
        res.writeHead(200, { "Content-Type": "text/html" });
        res.write(body);
        res.end();
    })



}